<div class="row">
    <div class="col-md-12">
        <!--breadcrumbs start -->
        <ul class="breadcrumb">
            <li>商品管理</li>
            <li class="active">商品列表</li>
        </ul>
        <!--breadcrumbs end -->
    </div>
</div>
<div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-body">
                <form class="form-inline">
                        <div class="form-group">
                            <label class="col-sm-6 control-label">所属类别</label>
                            <div class="col-sm-6">
                                <select id="offer_type" class="form-control input-sm">
                                    <option value=""> 全部</option>
                                 #if($types)
                                    #foreach($type in $types)
                                        <option value="$type.id"> $type.offer_type_name</option>
                                    #end
                                #end
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-6 control-label">所属品牌</label>
                            <div class="col-sm-6">
                                <select id="offer_brand" class="form-control input-sm">
                                    <option value=""> 全部</option>

                                #if($brands)

                                    #foreach($brand in $brands)
                                        <option value="$brand.id" >$brand.brand_name</option>
                                    #end
                                 #end

                                </select>
                            </div>
                        </div>
                    <div class="pull-right">
                        <div class="form-group">
                            <input type="search" id="userSearch" class="form-control input-sm" placeholder="关键字">
                        </div>
                        <button id="userSearchBtn" class="btn btn-primary" type="button">查询</button>
                    </div>
                </form>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-body">
                <button type="button" id="btnAdd" class="btn btn-primary btn-sm">新增</button>
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th><input id="checkAll" type="checkbox"></th>
                        <th>名称</th>
                        <th>进厂价格</th>
                        <th>出厂价格</th>
                        <th>类别</th>
                        <th>品牌</th>
                        <th>状态</th>
                        <th>创建时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody id="mainbody">
                    </tbody>
                </table>
                <div id="page" class="row">
                    <div class="col-xs-6">
                        <div class="dataTables_info">总共 <i class="page-totalcount text-success">0</i> 条记录,当前 <i class="page-pageno text-success">0</i> / <i class="page-pagecount text-success">0</i> 页，每页显示
                            <select class="page-pagesize">
                                <option value="10">10</option>
                                <option value="20">20</option>
                                <option value="50">50</option>
                            </select> 条记录
                        </div>
                    </div>
                    <div class="col-xs-6">
                        <div class="dataTables_paginate pull-right">
                            <div class="pagination_c">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script src="/shop/offer/offer/list.js"></script>